package com.cdcas;

import java.util.ArrayList;
import java.util.List;

public class StudentTest {
    public static void main(String[] args) {
        List<Student> stuList = new ArrayList<>();
        stuList.add(new Student(1,"a","男",18));
        stuList.add(new Student(2,"testa","男",19));
        stuList.add(new Student(3,"testb","男",20));
        stuList.add(new Student(4,"zhangsan","男",18));
        for (Student st:stuList) {
            System.out.println("学生信息:" + st);
        }
    }
}
